package com.xiaobawang.data_server.service.impl;

import com.xiaobawang.data_server.dao.IUser;
import com.xiaobawang.data_server.entity.User;
import com.xiaobawang.data_server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {

    @Autowired
    private IUser iUser;

    @Override
    public int insertUser(User user) {
        return iUser.insertUser(user);
    }

    @Override
    public int deleteUser(int id) {
        return iUser.deleteUser(id);
    }

    @Override
    public int alterUser(User user) {
        return iUser.alterUser(user);
    }

    @Override
    public User selectUser(int id) {
        return iUser.selectUser(id);
    }

}
